<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title><%=h @title || 'RoRBS' %></title>
	<%= stylesheet_link_tag 'default' %>
	<%= yield :head %>
</head>
<body>
	<div id="wrapper">
			<div id="header">
				<h1>RoRBS v0.1 Alpha</h1>
			</div>

			<div id="menu">
				<span id="user_login"><%= logged_in? ? current_user.login :  _('You are not logged in.') %></span>
				<ul>
					<li><%= link_to _('Home'), home_path %></li>
					<li><%= link_to _('Users'), users_path %></li>
					<li><%= link_to _('Search'), search_path %></li>
					<% if !logged_in? %>
					<li><%= link_to _('Login'), login_path %></li>
					<li><%= link_to _('Register'), register_path %></li>
					<% else %>
					<li><%= link_to _('Logout'), logout_path %></li>
					<% end %>
				</ul>
				<div class="clearer"></div>
			</div>
			
			<% flash.each do |key, msg| %>
			<%= content_tag :div, msg, :id => key, :class => 'flash' %>
			<% end %>
			
			<ul id="location">
				<li><%= link_to 'Index', home_path %></li>
				<%= yield :location %>
			</ul>

			<div id="container">
				<%= yield :layout %>
			</div>	
	</div>
	<div id="footer">
		<p><%=_ 'RoRBS is a simple forum software powered by' %> <a href="http://www.rubyonrails.org">Ruby On Rails</a></p>
	</div>
</body>
</html>